﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WaterReminder
{
  public partial class WaterReminder : Form
  {
    public WaterReminder()
    {
      InitializeComponent();
    }

    DrinkTime dt = new DrinkTime();

    private void btnSubmit_Click(object sender, EventArgs e)
    {
      timer1.Interval = Int32.Parse(txtMinutes.Text) * 1000 * 60;
      timer1.Enabled = true;
      this.Hide();
    }

    private void timer1_Tick(object sender, EventArgs e)
    {
      dt.Show();
    }
  }
}
